import FormBasic from './FormBasic'
import FormWizard from './FormWizard'
import IconMaterial from './IconMaterial'
import IconFontawesome from './IconFontawesome'
import PagesButtons from './PagesButtons'
import PagesElements from './PagesElements'
import Tables from './Tables'

import Login from './Login'
import AuthLogin from './AuthLogin'
import Console from './Console'

import Home from './Home'

import PermitListPage from './PermitListPage'
import RoleListPage from './RoleListPage'
import RolePermitPage from './RolePermitPage'
import AdminListPage from './AdminListPage'
import AdminRolePage from './AdminRolePage'
import PlatRoleListPage from './PlatRoleListPage'
import PlatAdminListPage from './PlatAdminListPage'
import PlatAdminRolePage from './PlatAdminRolePage'
import ChargeListPage from './ChargeListPage'

const routes = [
	{
		path: '/login',
		component: Login
	},
	{
		path: '/auth/:name/:code',
		component: AuthLogin,
		props: true
	},
	{
		path: '/',
		component: Console,
		children: [
			{
				path: '',
				component: Home
			},
			{
				path: '/form-basic.html',
				component: FormBasic
			},
			{
				path: '/form-wizard.html',
				component: FormWizard
			},
			{
				path: '/icon-material.html',
				component: IconMaterial
			},
			{
				path: '/icon-fontawesome.html',
				component: IconFontawesome
			},
			{
				path: '/pages-buttons.html',
				component: PagesButtons
			},
			{
				path: '/pages-elements.html',
				component: PagesElements
			},
			{
				path: '/tables.html',
				component: Tables
			},

			{
				path: '/permit-list-:platType',
				component: PermitListPage,
				props: true
			},
			{
				path: '/role-permit-:platType-:roleId',
				component: RolePermitPage,
				props: true
			},
			{
				path: '/role-list-:platType',
				component: RoleListPage,
				props: true
			},
			{
				path: '/admin-role-:platType-:adminId',
				component: AdminRolePage,
				props: true
			},
			{
				path: '/admin-list-:platType',
				component: AdminListPage,
				props: true
			},
			{
				path: '/plat-role-list-:platType',
				component: PlatRoleListPage,
				props: true
			},
			{
				path: '/plat-admin-list-:platType',
				component: PlatAdminListPage,
				props: true
			},
			{
				path: '/plat-admin-role-:platType-:platId-:adminId',
				component: PlatAdminRolePage,
				props: true
			},
			{
				path: '/charge-list',
				component: ChargeListPage
			}
		]
	}

]

export default routes